<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="<%=path%>/CSS/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp"%>
<script type="text/javascript"
	src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
.seachform li label{line-height: 45px;color: #444444	}
.scinput{line-height: 10px;margin-top: 5px}
.scinput1{margin-top: 5px;height: 30px;}
.scbtn{background: #57a0ff;border-radius:20px;width: 110px;margin-top: 4px;height: 35px}
.scbtn2{height: 20px;background: #57a0ff;border-radius:20px;width: 50px;color: #fff;display: none;}

.tablelist th{background: none;border-bottom: none;}
thead {background: #f2f2f2}
tbody tr:nth-child(even) {background: #f7f8fd}
.tablelist th{height: 45px;padding-left: 30px}
.tablelist td{border-right:none;padding-left: 30px}
tbody tr{height: 38px}
.check{padding-left: 0px}
a{cursor: pointer;}
.tablelist{width:500px;border:0px;border-collapse:collapse;border-spacing:0;}
.tablelist tr{height:30px;}
.tablelist tr td{border-bottom:1px solid #BBB;}

.scbtn {
	outline: none;
}
</style>
</head>
<body style="background: #f5f5f5;padding: 0 10px;">
	<div class="place" style="background: #f5f5f5; margin-top: 10px">
		<ul class="placeul">
			<li><a href="#">报表</a></li>
			<li><a href="#">财务报表</a></li>
			<li><a href="<%=path%>/DrivingSys/queryBigCarJournal/look.action">国力大车日账表</a></li>
		</ul>
	</div>

	<div class="rightinfo"
		style="background: #fff; border-radius: 10px; height: 45px;">
		<form 
			class="form" method="post">
			<ul class="seachform">
				<li><label>考试时间</label> <input
					type="text" name="time" id="ksrq" value="${time}" class="scinput1"
					onclick="WdatePicker({el:'ksrq',dateFmt:'yyyy-MM-dd'})" /></li>
				<li><label>&nbsp;</label><input name="" type="button"
                                                class="scbtn" value="立即查询" id="cx"/></li>
			</ul>
		</form>
	</div>

	<div
		style="width: 100%; overflow: auto; margin-bottom: 20px; margin-top: 30px; background: #fff; box-shadow: 0 0 10px #f2f2f2; min-height: 600px" class="div">
		<ul>
			<li style="height: 40px; text-align: left; color: #999999;">
				<span style="font-size: 12px;">
					<shiro:hasPermission name="/insertBigCarJournal">
						<img alt="" style="margin-top: 20px; margin-left: 22px; height: 12px;"
							 src="<%=path%>/images/list/xz.png"> &nbsp;
						<a href="<%=path%>/DrivingSys/insertBigCarJournal">新增数据</a>
					</shiro:hasPermission>
					<shiro:hasPermission name="/importBigCarJournalData">
						<img alt="" style="margin-top: 20px; margin-left: 22px; height: 12px;"
							 src="<%=path%>/images/dc.jpg"> &nbsp;
						<a class="importData">导出数据</a>
					</shiro:hasPermission>
			</span></li>
		</ul>
		<table class="tablelist" id="table1" style="width: auto; white-space: nowrap;">
			<thead>
				<tr>
					<th style="width: 100px">约考人数</th>
					<th style="width: 100px">未到人数</th>
					<th style="width: 100px">实考人数</th>
					<th style="width: 100px">及格人数</th>
					<th style="width: 100px">及格率</th>
					<th style="width: 120px">本市考生实考人数</th>
					<th style="width: 120px">备注</th>
				</tr>
			</thead>
			<c:if test="${not empty bigCarJournal}">
				<tr>
					<td>${bigCarJournal.ykrs}</td>
					<td>${bigCarJournal.wdrs}</td>
					<td>${bigCarJournal.skrs}</td>
					<td>${bigCarJournal.jgrs}</td>
					<td>${bigCarJournal.jgl}</td>
					<td>${bigCarJournal.bssk}</td>
					<td>${bigCarJournal.cfdesc}</td>
				</tr>
			</c:if>
		</table>
	</div>
</body>
<script type="text/javascript">

$(document).ready(function(){
	var type = "${type}";
	if(type == null || type == ''){
		
	}else{
        alert("保存成功")
	}
})

$("#cx").click(function(){
	var time = $("#ksrq").val();
	if(time == '' || time == null){
		alert("考试时间不能为空")
		return false;
	}else{
		location = '<%=path%>/DrivingSys/queryBigCarJournal/look.action?time='+time
	}
})

$(".importData").click(function(){
	var time = $("#ksrq").val();
	location = '<%=path%>/DrivingSys/importBigCarJournalData?time='+time
})
</script>
</html>